<template>
  <div class="Notice flex justify-between items-start">
    <div class="right">
      <div class="photo">
        <!-- <div class="title">
          <div class="title-text">写信须知</div>
        </div> -->
        <div class="photo-content">
          社会各界人士和广大市民：
          书记/县长信箱是党和政府密切联系群众的桥梁。真诚地欢迎社会各界人士和市民对我县改革开
          放、经济建设和社会发展等方面工作提出您的意见、批评、建议、设想和请求。对您反映的情况，提出的意见、建议或投诉、请求，我们将按照《信访条例》的有关
          规定做出妥善处理，并及时给予答复。把我县建设得更加美好，是我们共同的愿望，同时也离不开您的支持！
        </div>
      </div>

      <LetterInquiry class="form-cx"></LetterInquiry>

    </div>
    <div class="left">
      <div class="title" v-if="title">{{title}}</div>
      <div class="content-form">
        <slot name="content"></slot>
      </div>
    </div>
  </div>
</template>
  
<script>
import TitleBox from "@STmailboxesWeb/components/titleBox";
import FormNew from "@/components/form/FormNew.vue";
import LetterInquiry from "@STmailboxesWeb/components/LetterInquiry";
export default {
  components: {
    TitleBox,
    FormNew,
    LetterInquiry
  },
  name: "InfoLayout",
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      ruleForm: {
        code: "",
        name: "",
      },
      rules: {
        code: [{ required: true, message: "请输入信件编码", trigger: "blur" }],
        name: [{ required: true, message: "请输入信件姓名", trigger: "blur" }],
      },

    };
  },

  methods: {
    submitForm() {
      // this.$emit('InfoLayout')
      console.log("搜索");
      this.$router.push({
        path: "/infoReply",
      });
    }

  },
};
</script>
  
<style lang='scss' scoped>
.Notice {
  width: 100%;

  .right {
    width: 29%;

    .photo {
      text-align: center;
      min-height: 300px;
      background: #f7fbff;
      border: 1px solid #d5d5d5;
      padding: 20px;

      .title {
        width: 100%;
        border-bottom: 1px dashed #698ab7;
        height: 34px;

        .title-text {
          text-align: center;
          line-height: 34px;
          width: 100px;
          height: 34px;
          background: linear-gradient(177deg, #3a8edc 0%, #2d72b2 100%);
          border-radius: 4px 4px 0px 0px;
          color: #fff;
        }
      }

      .photo-content {
        text-align: start;
        line-height: 20px;
        padding: 20px 0px;
      }
    }

    .form-cx {
      margin-top: 10px;

      background: #e2efff;
      border: 1px solid #d6ddeb;
    }

    .name {
      margin: 10px 0px;
      padding-bottom: 10px;
      border-bottom: 1px solid #d1cfcf;
    }
  }

  .left {
    width: 69%;
    min-height: 500px;
    background: #ffffff;
    border: 1px solid #d5d5d5;
    padding-bottom: 20px;

    .title {
      width: 100%;
      height: 40px;
      // line-height: 40px;
      background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 100%);
      border: 1px solid #dbdbdb;
      padding: 10px 20px;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #333333;
      line-height: 20px;
    }

    .content-form {
      margin: 20px;
      background: #ffffff;
      border-radius: 2px;


    }
  }

  .c265697 {
    color: #265697;
  }
}

::v-deep {
  .form-cx .el-form-item__content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    >button {
      width: 50%;
      margin: 0px;
      border-radius: 2px 0px 0px 2px;
    }

    >button:first-child {
      background: linear-gradient(179deg, #3a8edc 0%, #2a6aa5 100%);
    }

    >button:last-child {
      color: #1655ab;
      border-radius: 0px 2px 2px 0px;
      border: 1px solid #a9bbd2;
    }
  }

  .button .el-button {
    width: 100px;
    height: 34px;
    background: linear-gradient(179deg, #3a8edc 0%, #2a6aa5 100%);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    line-height: 34px;
    padding: 0px;
  }

  .FormNew .el-form-item {
    min-height: 28px;
  }

  .FormNew .el-form-item__label {
    width: 80px;
    height: 28px;
    line-height: 28px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E9E9E9 100%);
    border-radius: 2px;
    text-align: center;
    border: 1px solid #DBDBDB;

    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #333333;
  }

  .FormNew .el-form-item__content {
    line-height: 28px;
  }

  .el-dropdown .el-button {
    background: linear-gradient(180deg, #FFFFFF 0%, #E9E9E9 100%);
    border-radius: 2px;
    text-align: center;
    border: 1px solid #DBDBDB;
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #333333;
  }

  // .el-input input {
  //   height: 100%;
  // }
}
</style>